// Styles for the "Tagging" plugin by Mark O'Sullivan
// --------------------------------------------------------------------------------------------------- //

.MessageList .Item .InlineTags.Meta {
	display: block;
}

.InlineTags {
	margin-top: 15px;
	li:after {
		content: "";
	}
}

.TagCloud, .InlineTags {
	li, a {
		display: inline-block;
		height: 24px;
		line-height: 24px;
		position: relative;
		font-size: 11px;
	}
	a {
		margin-left: 15px;
		padding: 0 10px 0 12px;
		background: @infoText;
		color: @white;
		font-weight: bold;
		text-decoration: none;
		.border-radius(0 4px 4px 0);
		&:hover {
			background: darken(@infoText, 10%);
			&:before {
				border-color:transparent darken(@infoText, 10%) transparent transparent;
			}
		}
		&:before {
			content:"";
			float:left;
			position:absolute;
			top:0;
			left:-12px;
			width:0;
			height:0;
			border-color:transparent @infoText transparent transparent;
			border-style:solid;
			border-width:12px 12px 12px 0;
		}
		&:after {
			content:"";
			position:absolute;
			top:10px;
			left:0;
			float:left;
			width:4px;
			height:4px;
			.border-radius(2px);
			.box-shadow(0px 1px 1px rgba(0,0,0,.1));
			background:@white;
		}
	}
	li {
		padding: 0;
		margin: 0 0 5px 0;
		border: none;
		background: none;
		.border-radius(0);
		.Count {
			display: none;
		}
	}
}

ul.token-input-list-bootstrap {
	.uneditable-input;
	width: 100%;
	min-height: 32px;
	cursor: text; 
	overflow: hidden; 
	height: auto !important; 
	margin: 0;
	background: white;
	list-style-type: none;
	border: 1px solid @inputBorder;
	.box-sizing(border-box);
}

// Focus mimick
ul.token-input-list-bootstrap {
	.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
	@transition: border linear .2s, box-shadow linear .2s;
	.transition(@transition);
}

ul.token-input-list-bootstrap.token-input-focused-bootstrap {
	border-color: rgba(82,168,236,.8);
	@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
	.box-shadow(@shadow);
	outline: 0;
	outline: thin dotted \9; /* IE6-9 */
}

ul.token-input-list-bootstrap li {
	float: left;
}

ul.token-input-list-bootstrap li p {
	display: inline;
	padding: 0;
	margin: 0;
}

ul.token-input-list-bootstrap li.token-input-token-bootstrap {
	.uneditable-input;
	padding: 0 4px;
	width: auto;
	margin: 0 5px 0 0;
	cursor: pointer;
}

ul.token-input-list-bootstrap li.token-input-token-bootstrap span.token-input-delete-token-bootstrap {
	.close;
	float: none;
	font-size: 16px;
	line-height: 1;
	margin-left: 5px;
}

ul.token-input-list-bootstrap li.token-input-token-bootstrap.token-input-selected-token-bootstrap {
	.buttonBackground(@btnDangerBackground, @btnDangerBackgroundHighlight);
	border: 1px solid @btnBorder;
	*border: 0; // Remove the border to prevent IE7's black border on input:focus
	border-bottom-color: darken(@btnBorder, 10%);
	color: #fff;
	text-shadow: 0 -1px 0 rgba(0,0,0,.25);
}

ul.token-input-list-bootstrap li input {
	display: inline;
	border: 0;
	background: none;
	-webkit-appearance: caret;
	padding: 0;
	margin: 0;
}

div.token-input-dropdown-bootstrap {
	.dropdown-menu;
	.typeahead;
}

div.token-input-dropdown-bootstrap ul {
	margin: 0;
	padding: 0;
}

div.token-input-dropdown-bootstrap p {
	margin: 0;
	padding: 3px 15px;
	color: @grayLight;
}

div.token-input-dropdown-bootstrap ul li {
	list-style-type: none;
	display: block;
	padding: 3px 15px;
	clear: both;
	font-weight: normal;
	line-height: @baseLineHeight;
	color: @dropdownLinkColor;
	white-space: nowrap;
}

div.token-input-dropdown-bootstrap ul li.token-input-selected-dropdown-item-bootstrap {
	color: @dropdownLinkColorHover;
	background-color: @dropdownLinkBackgroundHover;
	#gradient > .vertical(@dropdownLinkBackgroundHover,
	darken(@dropdownLinkBackgroundHover, 5%));
	cursor: pointer;
}